<%@ taglib prefix="jstl" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8" %>
<%@ include file="common.jsp" %>

<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>添加部门</title>
    <link rel="stylesheet" type="text/css" href="/css/main.css">
    <link rel="stylesheet" type="text/css" href="/css/bootstrap.min.css">
    <script src="/js/jquery-1.12.4.min.js"></script>
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="/js/bootstrap.min.js"></script>
    <style>
        .container input {
            width: 100%;
        }

        .container div {
            margin: 5px 0px;
        }
    </style>
</head>
<body>
<!-- 很多页面都使用这个顶部栏，所以拿出来放到一个单独文件中 -->
<jsp:include page="componse/top_bar.jsp" flush="true"/>

<nav class="navbar navbar-default" role="navigation">
    <div class="navbar-header">
        <a class="navbar-brand" href="/main">返回</a>
    </div>
    <div>
        <ul class="nav navbar-nav">
            <li><a href="/class/class_man">部门管理</a></li>
            <li ><a href="/Saccount/student_man">员工管理</a></li>
            <li class="active"><a href="/Saccount/addStudent">添加部门</a></li>
        </ul>
    </div>
</nav>

<div style="text-align: center;">
    <div class="container" style="width: 400px;margin: 10px auto;text-align: left; ">
        <form method="POST" action="/class/addClassToSql">
            <div class="row">
                <div class="col-md-12">
                    部门名称： <input type="text" name="name"/>
                </div>
            </div>

            <div class="row">
                <div class="col-md-12">
                    部门序号： <input type="text" name="level"/>
                </div>
            </div>

            <div class="row">
                <div class="col-md-12">
                    公司名称： <input type="text" name="school_name"/>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <input type="submit" name="提交" value="提交"/>
                </div>
            </div>

        </form>
        <form action="/class/class_man">
            <div class="col-sm-12">
                <input type="submit" name="返回" value="返回"/>
            </div>

        </form>

    </div>
</div>
</body>
</html>
